package com.ktgj.flight.mapper;

import java.util.List;
import com.ktgj.flight.domain.FlightChannelRule;
import com.ktgj.flight.domain.vo.FlightChannelRuleVo;

/**
 * 出票渠道规定主Mapper接口
 * 
 * @author ruoyi
 * @date 2021-12-23
 */
public interface FlightChannelRuleMapper 
{
    /**
     * 查询出票渠道规定主
     * 
     * @param ruleId 出票渠道规定主ID
     * @return 出票渠道规定主
     */
    public FlightChannelRule selectFlightChannelRuleById(Long ruleId);

    /**
     * 查询出票渠道规定主列表
     * 
     * @param flightChannelRule 出票渠道规定主
     * @return 出票渠道规定主集合
     */
    public List<FlightChannelRule> selectFlightChannelRuleList(FlightChannelRule flightChannelRule);

    /**
     * 新增出票渠道规定主
     * 
     * @param flightChannelRule 出票渠道规定主
     * @return 结果
     */
    public int insertFlightChannelRule(FlightChannelRule flightChannelRule);

    /**
     * 修改出票渠道规定主
     * 
     * @param flightChannelRule 出票渠道规定主
     * @return 结果
     */
    public int updateFlightChannelRule(FlightChannelRule flightChannelRule);

    /**
     * 删除出票渠道规定主
     * 
     * @param ruleId 出票渠道规定主ID
     * @return 结果
     */
    public int deleteFlightChannelRuleById(Long ruleId);

    /**
     * 批量删除出票渠道规定主
     * 
     * @param ruleIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteFlightChannelRuleByIds(Long[] ruleIds);

    /**
     * 根据航司二字码获取渠道信息
     * @param airliner
     * @return
     */
    FlightChannelRule selectFlightChannelInfo(String airliner);

    /**
     * 出票规定列表
     * */
    public List<FlightChannelRule> selectFlightChannelRuleBy(FlightChannelRuleVo flightChannelRuleVo);
}
